//
//  FFBaseViewController.h
//  beichoo_N_ios
//
//  Created by 陈健 on 2017/8/21.
//  Copyright © 2017年 陈健. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FFNavigationController.h"
@interface FFBaseViewController : UIViewController

//导航栏右边按钮
@property (nonatomic, strong) UIButton *rightNavigationButton;
- (void)addRightNavigationButtonWithImge:(NSString *)imageName;
- (void)addRightNavigationButtonWithTitle:(NSString *)title;
#pragma mark -左侧- 添加返回按钮
- (void)addNavigationRetunItem;
- (void)returnClick;

-(instancetype)initWithRouterParams:(NSDictionary *)params;

- (void)show_login;
- (void)loginSuccess;
- (void)encodeWithCoder:(nonnull NSCoder *)aCoder;

- (void)traitCollectionDidChange:(nullable UITraitCollection *)previousTraitCollection;

- (void)preferredContentSizeDidChangeForChildContentContainer:(nonnull id<UIContentContainer>)container;

- (CGSize)sizeForChildContentContainer:(nonnull id<UIContentContainer>)container withParentContainerSize:(CGSize)parentSize;

- (void)systemLayoutFittingSizeDidChangeForChildContentContainer:(nonnull id<UIContentContainer>)container;

- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(nonnull id<UIViewControllerTransitionCoordinator>)coordinator;

- (void)willTransitionToTraitCollection:(nonnull UITraitCollection *)newCollection withTransitionCoordinator:(nonnull id<UIViewControllerTransitionCoordinator>)coordinator;

- (void)didUpdateFocusInContext:(nonnull UIFocusUpdateContext *)context withAnimationCoordinator:(nonnull UIFocusAnimationCoordinator *)coordinator;

- (void)setNeedsFocusUpdate;

- (BOOL)shouldUpdateFocusInContext:(nonnull UIFocusUpdateContext *)context;

- (void)updateFocusIfNeeded;

@end
